import { Component, OnInit } from '@angular/core';
import { Hero } from './app.hero';
import { HeroService } from './hero.service';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css'],
  providers: [
    HeroService
  ]
})

export class AppComponent implements OnInit {

  title: string;

  constructor() {
  }

  ngOnInit(): void {
    this.title = "Tour of Heroes";
  }


}







